import React from 'react';
import LineAreaChart from './LineAreaChart';

export default class NewMissionLineAreaChart extends LineAreaChart {
	constructor(props) {
		super(props);
	}

	/**
	 * @override
	 */
	getSeries(props) {
		let { dataSource } = props;

		return [{
			name: '人数',
			type: 'area',
			data: dataSource.newMissionPeopleCountSeries,
			tooltip: {
				valueSuffix: ''
			}
		}, {
			name: '次数',
			type: 'line',
			yAxis: 2,
			data: dataSource.newMissionTimeCountSeries,
			tooltip: {
				valueSuffix: ''
			}
		},{
			name: '成功关卡数',
			type: 'line',
			yAxis: 2,
			data: dataSource.newMissionEndCountSeries,
			tooltip: {
				valueSuffix: ''
			}
		}, {
			name: '关卡数',
			type: 'line',
			yAxis: 2,
			data: dataSource.newMissionCountSeries,
			tooltip: {
				valueSuffix: ''
			}
		}];
	}
}
